<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Connectivity Middleware Utilities Library: Linked list functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="cypress_logo.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Connectivity Middleware Utilities Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('group__group__linkedlist__func.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">Linked list functions<div class="ingroups"><a class="el" href="group__group__utils.html">Common middleware utilities</a> &raquo; <a class="el" href="group__linkedlist__utils.html">Linked list utilities</a></div></div></div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p >This is a generic linked list library with helper functions to add, insert, delete and find nodes in a list. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga14d588b8430af13000933f0903aac752"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#ga14d588b8430af13000933f0903aac752">cy_linked_list_init</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list)</td></tr>
<tr class="memdesc:ga14d588b8430af13000933f0903aac752"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize list.  <a href="group__group__linkedlist__func.html#ga14d588b8430af13000933f0903aac752">More...</a><br /></td></tr>
<tr class="separator:ga14d588b8430af13000933f0903aac752"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf72669648b4b7c6bad063eb4ce6ab88d"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#gaf72669648b4b7c6bad063eb4ce6ab88d">cy_linked_list_deinit</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list)</td></tr>
<tr class="memdesc:gaf72669648b4b7c6bad063eb4ce6ab88d"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-initialize list.  <a href="group__group__linkedlist__func.html#gaf72669648b4b7c6bad063eb4ce6ab88d">More...</a><br /></td></tr>
<tr class="separator:gaf72669648b4b7c6bad063eb4ce6ab88d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf240a8a3158217dfae7093eab74799fa"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#gaf240a8a3158217dfae7093eab74799fa">cy_linked_list_get_count</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, uint32_t *count)</td></tr>
<tr class="memdesc:gaf240a8a3158217dfae7093eab74799fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the count for number of nodes present in list.  <a href="group__group__linkedlist__func.html#gaf240a8a3158217dfae7093eab74799fa">More...</a><br /></td></tr>
<tr class="separator:gaf240a8a3158217dfae7093eab74799fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga48a64a2140ed50b9afafee933c4a1bf5"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#ga48a64a2140ed50b9afafee933c4a1bf5">cy_linked_list_set_node_data</a> (cy_linked_list_node_t *node, const void *data)</td></tr>
<tr class="memdesc:ga48a64a2140ed50b9afafee933c4a1bf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the data for linked list node.  <a href="group__group__linkedlist__func.html#ga48a64a2140ed50b9afafee933c4a1bf5">More...</a><br /></td></tr>
<tr class="separator:ga48a64a2140ed50b9afafee933c4a1bf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafbb739e934b9a9e654d080d1506f0ed0"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#gafbb739e934b9a9e654d080d1506f0ed0">cy_linked_list_get_front_node</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, cy_linked_list_node_t **front_node)</td></tr>
<tr class="memdesc:gafbb739e934b9a9e654d080d1506f0ed0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the front node in list.  <a href="group__group__linkedlist__func.html#gafbb739e934b9a9e654d080d1506f0ed0">More...</a><br /></td></tr>
<tr class="separator:gafbb739e934b9a9e654d080d1506f0ed0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4e7211197ec3831226cab86439a97996"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#ga4e7211197ec3831226cab86439a97996">cy_linked_list_get_rear_node</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, cy_linked_list_node_t **rear_node)</td></tr>
<tr class="memdesc:ga4e7211197ec3831226cab86439a97996"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the rear node in list.  <a href="group__group__linkedlist__func.html#ga4e7211197ec3831226cab86439a97996">More...</a><br /></td></tr>
<tr class="separator:ga4e7211197ec3831226cab86439a97996"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf0c5ed42484e7017348f45c3f11a1e08"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#gaf0c5ed42484e7017348f45c3f11a1e08">cy_linked_list_find_node</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, <a class="el" href="group__group__linkedlist__structures.html#ga2b6d1b43f25aeb0b0408fc361b37440f">cy_linked_list_compare_callback_t</a> callback, void *user_data, cy_linked_list_node_t **node_found)</td></tr>
<tr class="memdesc:gaf0c5ed42484e7017348f45c3f11a1e08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find particular node in the list.  <a href="group__group__linkedlist__func.html#gaf0c5ed42484e7017348f45c3f11a1e08">More...</a><br /></td></tr>
<tr class="separator:gaf0c5ed42484e7017348f45c3f11a1e08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga50c7494acab0cebb8f2e1ce20fb0bdec"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#ga50c7494acab0cebb8f2e1ce20fb0bdec">cy_linked_list_insert_node_at_front</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, cy_linked_list_node_t *node)</td></tr>
<tr class="memdesc:ga50c7494acab0cebb8f2e1ce20fb0bdec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert node at the front of the list.  <a href="group__group__linkedlist__func.html#ga50c7494acab0cebb8f2e1ce20fb0bdec">More...</a><br /></td></tr>
<tr class="separator:ga50c7494acab0cebb8f2e1ce20fb0bdec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaad820f6646e9f51b06d65a477299b44e"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#gaad820f6646e9f51b06d65a477299b44e">cy_linked_list_insert_node_at_rear</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, cy_linked_list_node_t *node)</td></tr>
<tr class="memdesc:gaad820f6646e9f51b06d65a477299b44e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert node at the rear of the list.  <a href="group__group__linkedlist__func.html#gaad820f6646e9f51b06d65a477299b44e">More...</a><br /></td></tr>
<tr class="separator:gaad820f6646e9f51b06d65a477299b44e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga42e5201df40c68abf642ea52229f2b08"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#ga42e5201df40c68abf642ea52229f2b08">cy_linked_list_insert_node_before</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, cy_linked_list_node_t *reference_node, cy_linked_list_node_t *node_to_insert)</td></tr>
<tr class="memdesc:ga42e5201df40c68abf642ea52229f2b08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert node before reference node.  <a href="group__group__linkedlist__func.html#ga42e5201df40c68abf642ea52229f2b08">More...</a><br /></td></tr>
<tr class="separator:ga42e5201df40c68abf642ea52229f2b08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1ac02e05ef249104d392573f5ec13a03"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#ga1ac02e05ef249104d392573f5ec13a03">cy_linked_list_insert_node_after</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, cy_linked_list_node_t *reference_node, cy_linked_list_node_t *node_to_insert)</td></tr>
<tr class="memdesc:ga1ac02e05ef249104d392573f5ec13a03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert node after reference node.  <a href="group__group__linkedlist__func.html#ga1ac02e05ef249104d392573f5ec13a03">More...</a><br /></td></tr>
<tr class="separator:ga1ac02e05ef249104d392573f5ec13a03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1b2dc29dda25d2eb48432cf9cd1c162f"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#ga1b2dc29dda25d2eb48432cf9cd1c162f">cy_linked_list_remove_node</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, cy_linked_list_node_t *node)</td></tr>
<tr class="memdesc:ga1b2dc29dda25d2eb48432cf9cd1c162f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the node from the list.  <a href="group__group__linkedlist__func.html#ga1b2dc29dda25d2eb48432cf9cd1c162f">More...</a><br /></td></tr>
<tr class="separator:ga1b2dc29dda25d2eb48432cf9cd1c162f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga032296644ff275cea5711c46bb8b7800"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#ga032296644ff275cea5711c46bb8b7800">cy_linked_list_remove_node_from_front</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, cy_linked_list_node_t **removed_node)</td></tr>
<tr class="memdesc:ga032296644ff275cea5711c46bb8b7800"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove node from front of the list.  <a href="group__group__linkedlist__func.html#ga032296644ff275cea5711c46bb8b7800">More...</a><br /></td></tr>
<tr class="separator:ga032296644ff275cea5711c46bb8b7800"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga068f2e63d333ae11c08c86d2d5afebf2"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__linkedlist__func.html#ga068f2e63d333ae11c08c86d2d5afebf2">cy_linked_list_remove_node_from_rear</a> (<a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *list, cy_linked_list_node_t **removed_node)</td></tr>
<tr class="memdesc:ga068f2e63d333ae11c08c86d2d5afebf2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove node from rear of the list.  <a href="group__group__linkedlist__func.html#ga068f2e63d333ae11c08c86d2d5afebf2">More...</a><br /></td></tr>
<tr class="separator:ga068f2e63d333ae11c08c86d2d5afebf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga14d588b8430af13000933f0903aac752" name="ga14d588b8430af13000933f0903aac752"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga14d588b8430af13000933f0903aac752">&#9670;&nbsp;</a></span>cy_linked_list_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to a list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG </dd></dl>

</div>
</div>
<a id="gaf72669648b4b7c6bad063eb4ce6ab88d" name="gaf72669648b4b7c6bad063eb4ce6ab88d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf72669648b4b7c6bad063eb4ce6ab88d">&#9670;&nbsp;</a></span>cy_linked_list_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_deinit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>De-initialize list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to a list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG </dd></dl>

</div>
</div>
<a id="gaf240a8a3158217dfae7093eab74799fa" name="gaf240a8a3158217dfae7093eab74799fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf240a8a3158217dfae7093eab74799fa">&#9670;&nbsp;</a></span>cy_linked_list_get_count()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_get_count </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the count for number of nodes present in list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">count</td><td>- number of nodes present in list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG </dd></dl>

</div>
</div>
<a id="ga48a64a2140ed50b9afafee933c4a1bf5" name="ga48a64a2140ed50b9afafee933c4a1bf5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga48a64a2140ed50b9afafee933c4a1bf5">&#9670;&nbsp;</a></span>cy_linked_list_set_node_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_set_node_data </td>
          <td>(</td>
          <td class="paramtype">cy_linked_list_node_t *&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the data for linked list node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>- linked list node for which data need to be set </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>- data value for node</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG </dd></dl>

</div>
</div>
<a id="gafbb739e934b9a9e654d080d1506f0ed0" name="gafbb739e934b9a9e654d080d1506f0ed0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafbb739e934b9a9e654d080d1506f0ed0">&#9670;&nbsp;</a></span>cy_linked_list_get_front_node()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_get_front_node </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t **&#160;</td>
          <td class="paramname"><em>front_node</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the front node in list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">front_node</td><td>- front node in the list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG </dd></dl>

</div>
</div>
<a id="ga4e7211197ec3831226cab86439a97996" name="ga4e7211197ec3831226cab86439a97996"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4e7211197ec3831226cab86439a97996">&#9670;&nbsp;</a></span>cy_linked_list_get_rear_node()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_get_rear_node </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t **&#160;</td>
          <td class="paramname"><em>rear_node</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the rear node in list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rear_node</td><td>- rear node in the list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG </dd></dl>

</div>
</div>
<a id="gaf0c5ed42484e7017348f45c3f11a1e08" name="gaf0c5ed42484e7017348f45c3f11a1e08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf0c5ed42484e7017348f45c3f11a1e08">&#9670;&nbsp;</a></span>cy_linked_list_find_node()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_find_node </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__linkedlist__structures.html#ga2b6d1b43f25aeb0b0408fc361b37440f">cy_linked_list_compare_callback_t</a>&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>user_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t **&#160;</td>
          <td class="paramname"><em>node_found</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Find particular node in the list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>- callback to compare node data in the list </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>- user data </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">node_found</td><td>- node_found in the list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG<ul>
<li>CY_RSLT_LINKED_LIST_NOT_FOUND </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ga50c7494acab0cebb8f2e1ce20fb0bdec" name="ga50c7494acab0cebb8f2e1ce20fb0bdec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga50c7494acab0cebb8f2e1ce20fb0bdec">&#9670;&nbsp;</a></span>cy_linked_list_insert_node_at_front()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_insert_node_at_front </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t *&#160;</td>
          <td class="paramname"><em>node</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Insert node at the front of the list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>- node to be added at the front of the list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG </dd></dl>

</div>
</div>
<a id="gaad820f6646e9f51b06d65a477299b44e" name="gaad820f6646e9f51b06d65a477299b44e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaad820f6646e9f51b06d65a477299b44e">&#9670;&nbsp;</a></span>cy_linked_list_insert_node_at_rear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_insert_node_at_rear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t *&#160;</td>
          <td class="paramname"><em>node</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Insert node at the rear of the list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>- node to be added at the rear of the list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG </dd></dl>

</div>
</div>
<a id="ga42e5201df40c68abf642ea52229f2b08" name="ga42e5201df40c68abf642ea52229f2b08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga42e5201df40c68abf642ea52229f2b08">&#9670;&nbsp;</a></span>cy_linked_list_insert_node_before()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_insert_node_before </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t *&#160;</td>
          <td class="paramname"><em>reference_node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t *&#160;</td>
          <td class="paramname"><em>node_to_insert</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Insert node before reference node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">reference_node</td><td>- Pointer to a node before which you want to add new node </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">node_to_insert</td><td>- Pointer to a node to be inserted</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG<ul>
<li>CY_RSLT_LINKED_LIST_NOT_FOUND </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ga1ac02e05ef249104d392573f5ec13a03" name="ga1ac02e05ef249104d392573f5ec13a03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1ac02e05ef249104d392573f5ec13a03">&#9670;&nbsp;</a></span>cy_linked_list_insert_node_after()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_insert_node_after </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t *&#160;</td>
          <td class="paramname"><em>reference_node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t *&#160;</td>
          <td class="paramname"><em>node_to_insert</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Insert node after reference node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">reference_node</td><td>- Pointer to a node after which you want to add new node </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">node_to_insert</td><td>- Pointer to a node to be inserted</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG<ul>
<li>CY_RSLT_LINKED_LIST_NOT_FOUND </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ga1b2dc29dda25d2eb48432cf9cd1c162f" name="ga1b2dc29dda25d2eb48432cf9cd1c162f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1b2dc29dda25d2eb48432cf9cd1c162f">&#9670;&nbsp;</a></span>cy_linked_list_remove_node()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_remove_node </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t *&#160;</td>
          <td class="paramname"><em>node</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove the node from the list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>- Pointer to a linked list node to be deleted</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG<ul>
<li>CY_RSLT_LINKED_LIST_NOT_FOUND </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ga032296644ff275cea5711c46bb8b7800" name="ga032296644ff275cea5711c46bb8b7800"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga032296644ff275cea5711c46bb8b7800">&#9670;&nbsp;</a></span>cy_linked_list_remove_node_from_front()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_remove_node_from_front </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t **&#160;</td>
          <td class="paramname"><em>removed_node</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove node from front of the list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">removed_node</td><td>- removed node</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG<ul>
<li>CY_RSLT_LINKED_LIST_NOT_FOUND </li>
</ul>
</dd></dl>

</div>
</div>
<a id="ga068f2e63d333ae11c08c86d2d5afebf2" name="ga068f2e63d333ae11c08c86d2d5afebf2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga068f2e63d333ae11c08c86d2d5afebf2">&#9670;&nbsp;</a></span>cy_linked_list_remove_node_from_rear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_linked_list_remove_node_from_rear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcy__linked__list__t.html">cy_linked_list_t</a> *&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cy_linked_list_node_t **&#160;</td>
          <td class="paramname"><em>removed_node</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove node from rear of the list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">list</td><td>- Pointer to an initialized list </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">removed_node</td><td>- removed node</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>on success - CY_RSLT_SUCCESS on failure - CY_RSLT_LINKED_LIST_BADARG<ul>
<li>CY_RSLT_LINKED_LIST_NOT_FOUND </li>
</ul>
</dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>Connectivity Middleware Utilities Library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
</body>
</html>
